package service.Impl;

import dao.CardDao;
import dao.Impl.CardDaoImpl;
import entity.Card;
import service.CardService;

import java.util.List;

public class CardServiceImpl implements CardService {
    CardDao cardDao  = new CardDaoImpl();
    @Override
    public List<Card> info() {
        return cardDao.info();
    }

    @Override
    public int inset(Card card) {
        return cardDao.inset(card);
    }

    @Override
    public int update(int id, int status) {
        return cardDao.update(id,status);
    }

    @Override
    public boolean addIdNumber(String idNumber) {
        return cardDao.addIdNumber(idNumber);
    }
}
